import { app, BrowserView, BrowserWindow, dialog } from "electron";
const Store = require("electron-store");
const path = require("path");

app.on("ready", () => {
  new Store()?.set("test", "789");
  const mainWindow = new BrowserWindow();
  mainWindow.loadFile(path.join(__dirname, "../index.html"));
  setTimeout(() => {
    dialog.showErrorBox("error", new Store().get("test"));
  }, 3000);
});
